package com.yang.config;

import com.yang.interceptors.LoginInterceptor;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 登录拦截器
 * 作者：孤城暖阳y
 * 日期：2025/03/01
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

//    @Resource
//    private LoginInterceptor loginInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        // 排除登录页面和注册页面
//        registry.addInterceptor(loginInterceptor).excludePathPatterns(
//                "/Treasure-Pavilion-admin/admin/*"
//        );
    }

}
